import * as Types from './mutations-type.js'

export default {
  //设管理员
  [Types.SET_ADMIN](state, payload) {
    state.admin = payload
  },
  //设置用户
  [Types.SET_USER](state, payload) {
    state.user = payload
  },
  //清除用户信息
  [Types.CLEAR_USER](state) {
    state.user = ''
  }
}
